package com.ruoyi.order.controller;

import com.ruoyi.order.feign.ProductFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @Autowired
    private ProductFeign productFeign;
    @GetMapping("/order")
    public String order() {
        return "order"+productFeign.product(1L);
    }
}
